namespace :bar do

  desc 'create bar'
  task :new => :environment do
    NavigaBar.create(admin_user_id: 1, company_id: 1, name: '首页', key: 'home')
    NavigaBar.create(admin_user_id: 1, company_id: 1, name: '技术核心', key: 'technical_core')
    NavigaBar.create(admin_user_id: 1, company_id: 1, name: '合作伙伴', key: 'cooperative')
    NavigaBar.create(admin_user_id: 1, company_id: 1, name: '关于我们', key: 'about')
    NavigaBar.create(admin_user_id: 1, company_id: 1, name: '团队', key: 'team')
    NavigaBar.create(admin_user_id: 1, company_id: 1, name: '联系我们', key: 'content_us')
  end
end
